How to sum the values of a series into a dataframe based on a mask numpy array

join shbcf.ru